/*
* Copyright (C) 2020 ~ 2024 chaigec All Rights Reserved.
*
* Author:     chaigec <chaigec@163.com>
* Maintainer: chaigec <chaigec@163.com>

 * Use of this source code is governed by MIT license that can be found in the
 * LICENSE file in the root of the source tree. All contributing project authors
 * may be found in the AUTHORS file in the root of the source tree.
*/

#ifndef MK_RTMP_DEMUXER_H
#define MK_RTMP_DEMUXER_H
#include "MkRtmpUtil.h"

class MkApi CMkRtmpDemuxer
{
public:
    static Uint32 Parse(Uint32 nChunkSize, const Uint8* pBuf, Uint32 nLen, Uint32& nUsed, Uint8** pBody, MkRtmpHeader& RtmpHeader);
protected:
private:
    static Uint32 ParseRtmpHeader(const Uint8* pBuf, Uint32 nLen, Uint32& nUsed, MkRtmpHeader& RtmpHeader);
};



#endif